cmake_minimum_required(VERSION 3.1)

project(uavs3d)

option(COMPILE_10BIT "Enable 10bit streams decoding support." OFF)

set(CMAKE_C_STANDARD 99)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)

aux_source_directory(./test DIR_SRC_TEST)

add_subdirectory(./source)

add_executable(uavs3dec ${DIR_SRC_TEST})

if (NOT MSVC)
    target_link_libraries(uavs3dec m)
endif()
target_link_libraries(uavs3dec uavs3d)
#target_link_libraries(uavs3dec dl)
